﻿/******************************************************************************
 *  All Rights Reserved , Copyright (C) 2012 , EricHu. 
 *  作    者： EricHu
 *  创建时间： 2012-7-20 16:35:53
 ******************************************************************************/

using System;
using System.Data;

namespace RDIFramework.BusinessEntity
{
     using RDIFramework.Utilities;

     /// <summary>
     /// PiStaffEntity
     /// 员工（职员）表
     ///
     /// 修改纪录
     ///
     ///		2012-03-02 版本：1.0 EricHu 创建主键。
     ///
     /// 版本：1.0
     ///
     /// <author>
     ///		<name>EricHu</name>
     ///		<date>2012-03-02</date>
     /// </author>
     /// </summary>
    [Serializable]
    public partial class PiStaffEntity
    {
        private int? id = null;
        /// <summary>
        /// 主键
        /// </summary>
        public int? Id
        {
            get
            {
                return this.id;
            }
            set
            {
                this.id = value;
            }
        }

        private String code = string.Empty;
        /// <summary>
        /// 编号,工号
        /// </summary>
        public String Code
        {
            get
            {
                return this.code;
            }
            set
            {
                this.code = value;
            }
        }

        private int? userId = null;
        /// <summary>
        /// 用户主键
        /// </summary>
        public int? UserId
        {
            get
            {
                return this.userId;
            }
            set
            {
                this.userId = value;
            }
        }

        private String username = string.Empty;
        /// <summary>
        /// 用户名(登录用)
        /// </summary>
        public String UserName
        {
            get
            {
                return this.username;
            }
            set
            {
                this.username = value;
            }
        }

        private String realname = string.Empty;
        /// <summary>
        /// 姓名
        /// </summary>
        public String RealName
        {
            get
            {
                return this.realname;
            }
            set
            {
                this.realname = value;
            }
        }       

        private int? dutyId = null;
        /// <summary>
        /// 职位代码
        /// </summary>
        public int? DutyId
        {
            get
            {
                return this.dutyId;
            }
            set
            {
                this.dutyId = value;
            }
        }

        private String gender = string.Empty;
        /// <summary>
        /// 性别
        /// </summary>
        public String Gender
        {
            get
            {
                return this.gender;
            }
            set
            {
                this.gender = value;
            }
        }

        private String birthday = string.Empty;
        /// <summary>
        /// 出生日期
        /// </summary>
        public String Birthday
        {
            get
            {
                return this.birthday;
            }
            set
            {
                this.birthday = value;
            }
        }

        private String age = string.Empty;
        /// <summary>
        /// 年龄
        /// </summary>
        public String Age
        {
            get
            {
                return this.age;
            }
            set
            {
                this.age = value;
            }
        }

        private String identificationCode = string.Empty;
        /// <summary>
        /// 唯一身份Id
        /// </summary>
        public String IdentificationCode
        {
            get
            {
                return this.identificationCode;
            }
            set
            {
                this.identificationCode = value;
            }
        }

        private String iDCard = string.Empty;
        /// <summary>
        /// 身份证号码
        /// </summary>
        public String IDCard
        {
            get
            {
                return this.iDCard;
            }
            set
            {
                this.iDCard = value;
            }
        }

        private String bankCode = string.Empty;
        /// <summary>
        /// 银行卡号
        /// </summary>
        public String BankCode
        {
            get
            {
                return this.bankCode;
            }
            set
            {
                this.bankCode = value;
            }
        }

        private String email = string.Empty;
        /// <summary>
        /// 电子邮件
        /// </summary>
        public String Email
        {
            get
            {
                return this.email;
            }
            set
            {
                this.email = value;
            }
        }

        private String mobile = string.Empty;
        /// <summary>
        /// 手机
        /// </summary>
        public String Mobile
        {
            get
            {
                return this.mobile;
            }
            set
            {
                this.mobile = value;
            }
        }

        private String shortNumber = string.Empty;
        /// <summary>
        /// 短号
        /// </summary>
        public String ShortNumber
        {
            get
            {
                return this.shortNumber;
            }
            set
            {
                this.shortNumber = value;
            }
        }

        private String telephone = string.Empty;
        /// <summary>
        /// 电话
        /// </summary>
        public String Telephone
        {
            get
            {
                return this.telephone;
            }
            set
            {
                this.telephone = value;
            }
        }

        private String qICQ = string.Empty;
        /// <summary>
        /// QQ号码
        /// </summary>
        public String QICQ
        {
            get
            {
                return this.qICQ;
            }
            set
            {
                this.qICQ = value;
            }
        }

        private String officePhone = string.Empty;
        /// <summary>
        /// 办公电话
        /// </summary>
        public String OfficePhone
        {
            get
            {
                return this.officePhone;
            }
            set
            {
                this.officePhone = value;
            }
        }

        private String officeZipCode = string.Empty;
        /// <summary>
        /// 办公邮编
        /// </summary>
        public String OfficeZipCode
        {
            get
            {
                return this.officeZipCode;
            }
            set
            {
                this.officeZipCode = value;
            }
        }

        private String officeAddress = string.Empty;
        /// <summary>
        /// 办公地址
        /// </summary>
        public String OfficeAddress
        {
            get
            {
                return this.officeAddress;
            }
            set
            {
                this.officeAddress = value;
            }
        }

        private String officeFax = string.Empty;
        /// <summary>
        /// 办公传真
        /// </summary>
        public String OfficeFax
        {
            get
            {
                return this.officeFax;
            }
            set
            {
                this.officeFax = value;
            }
        }

        private String homePhone = string.Empty;
        /// <summary>
        /// 住宅电话
        /// </summary>
        public String HomePhone
        {
            get
            {
                return this.homePhone;
            }
            set
            {
                this.homePhone = value;
            }
        }

        private String education = string.Empty;
        /// <summary>
        /// 最高学历
        /// </summary>
        public String Education
        {
            get
            {
                return this.education;
            }
            set
            {
                this.education = value;
            }
        }

        private String school = string.Empty;
        /// <summary>
        /// 毕业院校
        /// </summary>
        public String School
        {
            get
            {
                return this.school;
            }
            set
            {
                this.school = value;
            }
        }

        private String degree = string.Empty;
        /// <summary>
        /// 最高学位
        /// </summary>
        public String Degree
        {
            get
            {
                return this.degree;
            }
            set
            {
                this.degree = value;
            }
        }

        private String title = null;
        /// <summary>
        /// 职称主键
        /// </summary>
        public String Title
        {
            get
            {
                return this.title;
            }
            set
            {
                this.title = value;
            }
        }

        private String titleDate = string.Empty;
        /// <summary>
        /// 职称评定日期
        /// </summary>
        public String TitleDate
        {
            get
            {
                return this.titleDate;
            }
            set
            {
                this.titleDate = value;
            }
        }

        private String titleLevel = string.Empty;
        /// <summary>
        /// 职称等级
        /// </summary>
        public String TitleLevel
        {
            get
            {
                return this.titleLevel;
            }
            set
            {
                this.titleLevel = value;
            }
        }

        private String workingDate = string.Empty;
        /// <summary>
        /// 工作时间
        /// </summary>
        public String WorkingDate
        {
            get
            {
                return this.workingDate;
            }
            set
            {
                this.workingDate = value;
            }
        }

        private String joinInDate = string.Empty;
        /// <summary>
        /// 加入本单位时间
        /// </summary>
        public String JoinInDate
        {
            get
            {
                return this.joinInDate;
            }
            set
            {
                this.joinInDate = value;
            }
        }

        private String homeZipCode = string.Empty;
        /// <summary>
        /// 家庭住址邮编
        /// </summary>
        public String HomeZipCode
        {
            get
            {
                return this.homeZipCode;
            }
            set
            {
                this.homeZipCode = value;
            }
        }

        private String homeAddress = string.Empty;
        /// <summary>
        /// 家庭住址
        /// </summary>
        public String HomeAddress
        {
            get
            {
                return this.homeAddress;
            }
            set
            {
                this.homeAddress = value;
            }
        }

        private String homeFax = string.Empty;
        /// <summary>
        /// 家庭传真
        /// </summary>
        public String HomeFax
        {
            get
            {
                return this.homeFax;
            }
            set
            {
                this.homeFax = value;
            }
        }

        private String nativePlace = string.Empty;
        /// <summary>
        /// 籍贯
        /// </summary>
        public String NativePlace
        {
            get
            {
                return this.nativePlace;
            }
            set
            {
                this.nativePlace = value;
            }
        }

        private String party = string.Empty;
        /// <summary>
        /// 政治面貌
        /// </summary>
        public String Party
        {
            get
            {
                return this.party;
            }
            set
            {
                this.party = value;
            }
        }

        private String nation = string.Empty;
        /// <summary>
        /// 国籍
        /// </summary>
        public String Nation
        {
            get
            {
                return this.nation;
            }
            set
            {
                this.nation = value;
            }
        }

        private String nationality = string.Empty;
        /// <summary>
        /// 民族
        /// </summary>
        public String Nationality
        {
            get
            {
                return this.nationality;
            }
            set
            {
                this.nationality = value;
            }
        }

        private String major = string.Empty;
        /// <summary>
        /// 专业
        /// </summary>
        public String Major
        {
            get
            {
                return this.major;
            }
            set
            {
                this.major = value;
            }
        }

        private String workingProperty = string.Empty;
        /// <summary>
        /// 工作性质
        /// </summary>
        public String WorkingProperty
        {
            get
            {
                return this.workingProperty;
            }
            set
            {
                this.workingProperty = value;
            }
        }

        private String competency = string.Empty;
        /// <summary>
        /// 职业资格
        /// </summary>
        public String Competency
        {
            get
            {
                return this.competency;
            }
            set
            {
                this.competency = value;
            }
        }

        private int? isDimission = 0;
        /// <summary>
        /// 离职
        /// </summary>
        public int? IsDimission
        {
            get
            {
                return this.isDimission;
            }
            set
            {
                this.isDimission = value;
            }
        }

        private String dimissionDate = string.Empty;
        /// <summary>
        /// 离职日期
        /// </summary>
        public String DimissionDate
        {
            get
            {
                return this.dimissionDate;
            }
            set
            {
                this.dimissionDate = value;
            }
        }

        private String dimissionCause = string.Empty;
        /// <summary>
        /// 离职原因
        /// </summary>
        public String DimissionCause
        {
            get
            {
                return this.dimissionCause;
            }
            set
            {
                this.dimissionCause = value;
            }
        }

        private String dimissionWhither = string.Empty;
        /// <summary>
        /// 离职去向
        /// </summary>
        public String DimissionWhither
        {
            get
            {
                return this.dimissionWhither;
            }
            set
            {
                this.dimissionWhither = value;
            }
        }

        private int? enabled = 1;
        /// <summary>
        /// 有效
        /// </summary>
        public int? Enabled
        {
            get
            {
                return this.enabled;
            }
            set
            {
                this.enabled = value;
            }
        }

        private int? deleteMark = 0;
        /// <summary>
        /// 删除标记
        /// </summary>
        public int? DeleteMark
        {
            get
            {
                return this.deleteMark;
            }
            set
            {
                this.deleteMark = value;
            }
        }

        private int? sortCode = null;
        /// <summary>
        /// 排序码
        /// </summary>
        public int? SortCode
        {
            get
            {
                return this.sortCode;
            }
            set
            {
                this.sortCode = value;
            }
        }

        private String description = string.Empty;
        /// <summary>
        /// 描述
        /// </summary>
        public String Description
        {
            get
            {
                return this.description;
            }
            set
            {
                this.description = value;
            }
        }

        private DateTime? createOn = DateTime.Now;
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateOn
        {
            get
            {
                return this.createOn;
            }
            set
            {
                this.createOn = value;
            }
        }

        private String createUserId = string.Empty;
        /// <summary>
        /// 创建用户主键
        /// </summary>
        public String CreateUserId
        {
            get
            {
                return this.createUserId;
            }
            set
            {
                this.createUserId = value;
            }
        }

        private String createBy = string.Empty;
        /// <summary>
        /// 创建用户
        /// </summary>
        public String CreateBy
        {
            get
            {
                return this.createBy;
            }
            set
            {
                this.createBy = value;
            }
        }

        private DateTime? modifiedOn = null;
        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? ModifiedOn
        {
            get
            {
                return this.modifiedOn;
            }
            set
            {
                this.modifiedOn = value;
            }
        }

        private String modifyUserId = string.Empty;
        /// <summary>
        /// 修改用户主键
        /// </summary>
        public String ModifyUserId
        {
            get
            {
                return this.modifyUserId;
            }
            set
            {
                this.modifyUserId = value;
            }
        }

        private String modifiedBy = string.Empty;
        /// <summary>
        /// 修改用户
        /// </summary>
        public String ModifiedBy
        {
            get
            {
                return this.modifiedBy;
            }
            set
            {
                this.modifiedBy = value;
            }
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        public PiStaffEntity()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">数据行</param>
        public PiStaffEntity(DataRow dataRow)
        {
            this.GetFrom(dataRow);
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataReader">数据流</param>
        public PiStaffEntity(IDataReader dataReader)
        {
            this.GetFrom(dataReader);
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataTable">数据表</param>
        public PiStaffEntity(DataTable dataTable)
        {
            this.GetFrom(dataTable);
        }

        /// <summary>
        /// 从数据表读取
        /// </summary>
        /// <param name="dataTable">数据表</param>
        public PiStaffEntity GetFrom(DataTable dataTable)
        {
            if ((dataTable == null) || (dataTable.Rows.Count == 0))
            {
                return null;
            }
            foreach (DataRow dataRow in dataTable.Rows)
            {
                this.GetFrom(dataRow);
                break;
            }
            return this;
        }

        /// <summary>
        /// 从数据行读取
        /// </summary>
        /// <param name="dataRow">数据行</param>
        public PiStaffEntity GetFrom(DataRow dataRow)
        {
            this.Id = BusinessLogic.ConvertToInt(dataRow[PiStaffTable.FieldId]);
            this.Code = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldCode]);
            this.UserId = BusinessLogic.ConvertToInt(dataRow[PiStaffTable.FieldUserId]);
            this.UserName = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldUserName]);
            this.RealName = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldRealName]);
            this.DutyId = BusinessLogic.ConvertToInt(dataRow[PiStaffTable.FieldDutyId]);
            this.Gender = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldGender]);
            this.Birthday = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldBirthday]);
            this.Age = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldAge]);
            this.IdentificationCode = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldIdentificationCode]);
            this.IDCard = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldIDCard]);
            this.BankCode = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldBankCode]);
            this.Email = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldEmail]);
            this.Mobile = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldMobile]);
            this.ShortNumber = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldShortNumber]);
            this.Telephone = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldTelephone]);
            this.QICQ = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldQICQ]);
            this.OfficePhone = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldOfficePhone]);
            this.OfficeZipCode = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldOfficeZipCode]);
            this.OfficeAddress = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldOfficeAddress]);
            this.OfficeFax = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldOfficeFax]);
            this.HomePhone = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldHomePhone]);
            this.Education = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldEducation]);
            this.School = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldSchool]);
            this.Degree = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldDegree]);
            this.Title = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldTitle]);
            this.TitleDate = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldTitleDate]);
            this.TitleLevel = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldTitleLevel]);
            this.WorkingDate = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldWorkingDate]);
            this.JoinInDate = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldJoinInDate]);
            this.HomeZipCode = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldHomeZipCode]);
            this.HomeAddress = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldHomeAddress]);
            this.HomeFax = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldHomeFax]);
            this.NativePlace = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldNativePlace]);
            this.Party = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldParty]);
            this.Nation = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldNation]);
            this.Nationality = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldNationality]);
            this.Major = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldMajor]);
            this.WorkingProperty = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldWorkingProperty]);
            this.Competency = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldCompetency]);
            this.IsDimission = BusinessLogic.ConvertToInt(dataRow[PiStaffTable.FieldIsDimission]);
            this.DimissionDate = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldDimissionDate]);
            this.DimissionCause = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldDimissionCause]);
            this.DimissionWhither = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldDimissionWhither]);
            this.Enabled = BusinessLogic.ConvertToInt(dataRow[PiStaffTable.FieldEnabled]);
            this.DeleteMark = BusinessLogic.ConvertToInt(dataRow[PiStaffTable.FieldDeleteMark]);
            this.SortCode = BusinessLogic.ConvertToInt(dataRow[PiStaffTable.FieldSortCode]);
            this.Description = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldDescription]);
            this.CreateOn = BusinessLogic.ConvertToDateTime(dataRow[PiStaffTable.FieldCreateOn]);
            this.CreateUserId = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldCreateUserId]);
            this.CreateBy = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldCreateBy]);
            this.ModifiedOn = BusinessLogic.ConvertToDateTime(dataRow[PiStaffTable.FieldModifiedOn]);
            this.ModifyUserId = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldModifyUserId]);
            this.ModifiedBy = BusinessLogic.ConvertToString(dataRow[PiStaffTable.FieldModifiedBy]);
            return this;
        }

        /// <summary>
        /// 从数据流读取
        /// </summary>
        /// <param name="dataReader">数据流</param>
        public PiStaffEntity GetFrom(IDataReader dataReader)
        {
            this.Id = BusinessLogic.ConvertToInt(dataReader[PiStaffTable.FieldId]);
            this.Code = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldCode]);
            this.UserId = BusinessLogic.ConvertToInt(dataReader[PiStaffTable.FieldUserId]);
            this.UserName = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldUserName]);
            this.RealName = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldRealName]);
            this.DutyId = BusinessLogic.ConvertToInt(dataReader[PiStaffTable.FieldDutyId]);
            this.Gender = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldGender]);
            this.Birthday = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldBirthday]);
            this.Age = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldAge]);
            this.IdentificationCode = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldIdentificationCode]);
            this.IDCard = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldIDCard]);
            this.BankCode = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldBankCode]);
            this.Email = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldEmail]);
            this.Mobile = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldMobile]);
            this.ShortNumber = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldShortNumber]);
            this.Telephone = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldTelephone]);
            this.QICQ = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldQICQ]);
            this.OfficePhone = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldOfficePhone]);
            this.OfficeZipCode = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldOfficeZipCode]);
            this.OfficeAddress = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldOfficeAddress]);
            this.OfficeFax = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldOfficeFax]);
            this.HomePhone = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldHomePhone]);
            this.Education = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldEducation]);
            this.School = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldSchool]);
            this.Degree = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldDegree]);
            this.Title = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldTitle]);
            this.TitleDate = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldTitleDate]);
            this.TitleLevel = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldTitleLevel]);
            this.WorkingDate = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldWorkingDate]);
            this.JoinInDate = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldJoinInDate]);
            this.HomeZipCode = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldHomeZipCode]);
            this.HomeAddress = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldHomeAddress]);
            this.HomeFax = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldHomeFax]);
            this.NativePlace = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldNativePlace]);
            this.Party = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldParty]);
            this.Nation = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldNation]);
            this.Nationality = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldNationality]);
            this.Major = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldMajor]);
            this.WorkingProperty = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldWorkingProperty]);
            this.Competency = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldCompetency]);
            this.IsDimission = BusinessLogic.ConvertToInt(dataReader[PiStaffTable.FieldIsDimission]);
            this.DimissionDate = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldDimissionDate]);
            this.DimissionCause = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldDimissionCause]);
            this.DimissionWhither = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldDimissionWhither]);
            this.Enabled = BusinessLogic.ConvertToInt(dataReader[PiStaffTable.FieldEnabled]);
            this.DeleteMark = BusinessLogic.ConvertToInt(dataReader[PiStaffTable.FieldDeleteMark]);
            this.SortCode = BusinessLogic.ConvertToInt(dataReader[PiStaffTable.FieldSortCode]);
            this.Description = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldDescription]);
            this.CreateOn = BusinessLogic.ConvertToDateTime(dataReader[PiStaffTable.FieldCreateOn]);
            this.CreateUserId = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldCreateUserId]);
            this.CreateBy = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldCreateBy]);
            this.ModifiedOn = BusinessLogic.ConvertToDateTime(dataReader[PiStaffTable.FieldModifiedOn]);
            this.ModifyUserId = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldModifyUserId]);
            this.ModifiedBy = BusinessLogic.ConvertToString(dataReader[PiStaffTable.FieldModifiedBy]);
            return this;
        }
    }
}
